-
Notifications
You must be signed in to change notification settings - Fork 0
/
cedar_hill_ddl.sql
4279 lines (4149 loc) · 115 KB
/
cedar_hill_ddl.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
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
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
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
560
561
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
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
-----------------------------------------------------------
-- Export file for user CEDARHILL@DATAWH --
-- Created by espositot on 5/26/2016, 15:15:39 15:15:39 --
-----------------------------------------------------------
set define off
spool cedar_hill_ddl.log
prompt
prompt Creating table ADDRESS
prompt ======================
prompt
create table CEDARHILL.ADDRESS
(
address_id NUMBER(11),
zip_code VARCHAR2(12)
)
tablespace DW_DEFAULT01
pctfree 10
initrans 1
maxtrans 255
storage
(
initial 80K
next 1M
minextents 1
maxextents unlimited
)
nologging;
prompt
prompt Creating table ATND_ABSENCE_TYPE
prompt ================================
prompt
create table CEDARHILL.ATND_ABSENCE_TYPE
(
entity_id VARCHAR2(5),
school_year VARCHAR2(10),
aat_id VARCHAR2(1),
aat_sdesc VARCHAR2(15),
aat_ldesc VARCHAR2(30),
aat_exc_unexc_tar_oth VARCHAR2(1),
aat_abs_exp_isus_osus VARCHAR2(1),
aat_cnt_in_truancy VARCHAR2(10),
aat_incl_in_cls_atnd VARCHAR2(10),
aat_incl_in_tot_atnd VARCHAR2(10),
live VARCHAR2(10),
aat_count_in_funding VARCHAR2(10),
aat_funding_type VARCHAR2(1),
sif_atnd_type_ref_id VARCHAR2(32),
color_code VARCHAR2(30),
state_code VARCHAR2(1),
aat_grading_points VARCHAR2(10)
)
tablespace DW_DEFAULT01
pctfree 10
initrans 1
maxtrans 255
storage
(
initial 80K
next 1M
minextents 1
maxextents unlimited
)
nologging;
prompt
prompt Creating table BUILDING
prompt =======================
prompt
create table CEDARHILL.BUILDING
(
building_id VARCHAR2(5),
school_id VARCHAR2(5),
building_sdesc VARCHAR2(15),
building_ldesc VARCHAR2(30),
combination_set VARCHAR2(10),
address_id VARCHAR2(10),
live VARCHAR2(10),
parcel_nbr VARCHAR2(10),
fish_nbr VARCHAR2(5)
)
tablespace DW_DEFAULT01
pctfree 10
initrans 1
maxtrans 255
storage
(
initial 80K
next 1M
minextents 1
maxextents unlimited
)
nologging;
prompt
prompt Creating table CALENDAR_DAY
prompt ===========================
prompt
create table CEDARHILL.CALENDAR_DAY
(
entity_id VARCHAR2(5),
track VARCHAR2(25),
calendar_id VARCHAR2(5),
cal_date VARCHAR2(14),
cal_prds_in_day VARCHAR2(2),
cal_days VARCHAR2(5),
cal_day_nbr VARCHAR2(5),
cal_alt_fri VARCHAR2(1),
cal_min_each_prd VARCHAR2(160),
cal_comment VARCHAR2(40),
cal_day_prds_meet VARCHAR2(320),
live VARCHAR2(2),
day_time_id VARCHAR2(1),
cal_non_instr_days VARCHAR2(5),
cal_zero_meet VARCHAR2(1),
cal_zero_min VARCHAR2(3)
)
tablespace DW_DEFAULT01
pctfree 10
initrans 1
maxtrans 255
storage
(
initial 80K
next 1M
minextents 1
maxextents unlimited
)
nologging;
prompt
prompt Creating table CALENDAR_MASTER
prompt ==============================
prompt
create table CEDARHILL.CALENDAR_MASTER
(
school_year NUMBER(9),
entity_id VARCHAR2(10),
track NUMBER(9),
calendar_id VARCHAR2(10),
cal_str_dte DATE,
cal_stp_dte DATE,
cal_def_prds_per_day_max NUMBER(9),
cal_def_atnd_prds_meet VARCHAR2(160),
cal_def_schd_prds_meet VARCHAR2(160),
cal_def_day_length_mins NUMBER(9),
cal_def_hrs_in_yr NUMBER(9),
cal_formula_or_cal_method VARCHAR2(2),
cal_formula_nbr_of_prds NUMBER(9),
cal_use_zero_mod VARCHAR2(2),
cal_incl_zero_mod_in_cnts VARCHAR2(2),
live VARCHAR2(1),
cal_def_nbr_non_instr_day NUMBER(17,2),
cal_serves_meal VARCHAR2(1),
cal_funding_prds VARCHAR2(60),
cal_avg_instr_per_week_hr NUMBER(9),
cal_avg_instr_per_week_min NUMBER(9),
cal_core_days NUMBER(17,2),
tn_teacher_day_stop NUMBER(9),
tn_teacher_day_start NUMBER(9),
tn_instructional_program NUMBER(9),
tn_scheduled_days NUMBER(9),
tn_instructional_cal VARCHAR2(2),
tn_cal_number NUMBER(9),
calendar_type VARCHAR2(2)
)
tablespace DW_DEFAULT01
pctfree 10
initrans 1
maxtrans 255
storage
(
initial 80K
next 1M
minextents 1
maxextents unlimited
)
nologging;
create index CEDARHILL.BMI_ENTITY_ID_CM on CEDARHILL.CALENDAR_MASTER (ENTITY_ID)
tablespace DW_DEFAULT02
pctfree 10
initrans 2
maxtrans 255
storage
(
initial 64K
next 1M
minextents 1
maxextents unlimited
);
create index CEDARHILL.BMI_SCHOOL_YEAR on CEDARHILL.CALENDAR_MASTER (SCHOOL_YEAR)
tablespace DW_DEFAULT02
pctfree 10
initrans 2
maxtrans 255
storage
(
initial 64K
next 1M
minextents 1
maxextents unlimited
);
prompt
prompt Creating table CLASS
prompt ====================
prompt
create table CEDARHILL.CLASS
(
cor_num_id VARCHAR2(75),
track VARCHAR2(75),
clas_section VARCHAR2(5),
entity_id VARCHAR2(5),
team_schd_id VARCHAR2(3),
clas_status VARCHAR2(1),
clas_nbr_stds_opt VARCHAR2(75),
clas_nbr_stds_max VARCHAR2(75),
clas_nbr_stds_min VARCHAR2(75),
clas_nbr_stds_enr_obs VARCHAR2(75),
clas_anytime VARCHAR2(75),
clas_alt_fri_flag VARCHAR2(1),
clas_grd_mid_when_obs VARCHAR2(75),
clas_wrk_female_cnts_obs VARCHAR2(75),
clas_wrk_male_cnts_obs VARCHAR2(75),
clas_mst_bld_flag VARCHAR2(75),
clas_mst_bld_days VARCHAR2(75),
clas_mst_bld_dsp_days VARCHAR2(75),
clas_grd_reg_when_obs VARCHAR2(75),
clas_use_var_tch_rm VARCHAR2(75),
control_set_id VARCHAR2(2),
clas_mode_teaching VARCHAR2(1),
clas_coreq_id VARCHAR2(75),
clas_coreq_section VARCHAR2(3),
calendar_id VARCHAR2(5),
atnd_method VARCHAR2(1),
grd_method VARCHAR2(1),
use_asgn_seats VARCHAR2(75),
atnd_nbr_rows VARCHAR2(75),
atnd_nbr_cols VARCHAR2(75),
clas_nbr_stds_enr VARCHAR2(75),
clas_wrk_female_cnts VARCHAR2(75),
clas_wrk_male_cnts VARCHAR2(75),
clas_grd_reg_when VARCHAR2(75),
clas_grd_mid_when VARCHAR2(75),
use_meeting_times VARCHAR2(75),
clas_wgt_schd_add_on VARCHAR2(100),
distance_learning_ind VARCHAR2(75),
population_served VARCHAR2(75),
instructional_setting VARCHAR2(75),
cor_seq_code VARCHAR2(75),
cor_seq_code2 VARCHAR2(75),
allow_cece VARCHAR2(75),
x_bilingual VARCHAR2(75),
sif_class_ref_id VARCHAR2(32),
ss_class VARCHAR2(75),
bld_room_type_id VARCHAR2(75),
mb_clas_locked VARCHAR2(75),
mb_control_set_schd VARCHAR2(75),
mb_control_set_locked VARCHAR2(75),
clas_nbr_days VARCHAR2(75),
clas_nbr_periods VARCHAR2(75),
clas_nbr_teachers VARCHAR2(75),
x_consecutive_prds VARCHAR2(75),
cm_time_type VARCHAR2(1),
schd_categories VARCHAR2(75),
class_gpa_set_id_1 VARCHAR2(75),
class_gpa_set_id_2 VARCHAR2(75),
class_gpa_set_id_3 VARCHAR2(75),
class_gpa_set_id_4 VARCHAR2(75),
class_gpa_set_id_5 VARCHAR2(75),
class_gpa_set_id_6 VARCHAR2(75),
class_gpa_set_id_7 VARCHAR2(75),
class_gpa_set_id_8 VARCHAR2(75),
class_gpa_set_id_9 VARCHAR2(75),
class_gpa_crdts_1 NUMBER(5,3),
class_gpa_crdts_2 NUMBER(5,3),
class_gpa_crdts_3 NUMBER(5,3),
class_gpa_crdts_4 NUMBER(5,3),
class_gpa_crdts_5 NUMBER(5,3),
class_gpa_crdts_6 NUMBER(5,3),
class_gpa_crdts_7 NUMBER(5,3),
class_gpa_crdts_8 NUMBER(5,3),
class_gpa_crdts_9 NUMBER(5,3),
clas_nbr_est_stds VARCHAR2(75),
cm_building_id VARCHAR2(5),
cte_flag VARCHAR2(75),
spec_ed_limit NUMBER(5,2),
clas_minutes_per_week VARCHAR2(75),
tn_service_district VARCHAR2(75),
tn_service_school VARCHAR2(75),
tn_class_type VARCHAR2(1),
title_iii VARCHAR2(1),
aide_percentage VARCHAR2(75),
cor_alphakey VARCHAR2(75),
tn_fed_funded VARCHAR2(75),
sr_char VARCHAR2(700)
)
tablespace DW_DEFAULT01
pctfree 10
initrans 1
maxtrans 255
storage
(
initial 80K
next 1M
minextents 1
maxextents unlimited
)
nologging;
prompt
prompt Creating table CLASS_MEET
prompt =========================
prompt
create table CEDARHILL.CLASS_MEET
(
cor_num_id NUMBER,
track NUMBER,
clas_section VARCHAR2(10),
dsp_str_trm NUMBER,
dsp_stp_trm NUMBER,
dsp_period NUMBER,
clas_lun_code VARCHAR2(2),
dsp_day_nbr NUMBER,
sch_str_trm NUMBER,
sch_stp_trm NUMBER,
sch_period NUMBER,
sch_day_nbr NUMBER,
atn_period NUMBER,
name_id NUMBER,
building_id VARCHAR2(10),
room_number VARCHAR2(10),
tchr_prime_flag VARCHAR2(2),
dsp_days_meet VARCHAR2(20),
sch_days_meet VARCHAR2(20),
atn_day_nbr NUMBER,
atn_days_meet VARCHAR2(20),
entity_id VARCHAR2(10),
school_year NUMBER,
cor_alphakey VARCHAR2(20),
clas_str_time NUMBER,
clas_stp_time NUMBER,
time_type VARCHAR2(2),
cece_type VARCHAR2(16),
cece_cor_num_id NUMBER,
x_print_meet VARCHAR2(1),
mb_days_schd VARCHAR2(1),
mb_period_schd VARCHAR2(1),
mb_room_schd VARCHAR2(1),
mb_teacher_schd VARCHAR2(1),
mb_days_locked VARCHAR2(1),
mb_period_locked VARCHAR2(1),
mb_room_locked VARCHAR2(1),
mb_teacher_locked VARCHAR2(1),
x_access_gradebook VARCHAR2(1),
x_access_ea_plus VARCHAR2(1),
st_rpt_code_2 VARCHAR2(8),
st_rpt_code_1 VARCHAR2(2),
team_teacher_training VARCHAR2(2),
highly_qualified VARCHAR2(2),
cert_status VARCHAR2(2),
fl_period_nbr VARCHAR2(1)
)
tablespace DW_DEFAULT01
pctfree 10
initrans 1
maxtrans 255
storage
(
initial 80K
next 1M
minextents 1
maxextents unlimited
)
nologging;
prompt
prompt Creating table CLAS_CONTROL_SET
prompt ===============================
prompt
create table CEDARHILL.CLAS_CONTROL_SET
(
entity_id VARCHAR2(5),
school_year VARCHAR2(10),
cor_length_set_id VARCHAR2(3),
control_set_id VARCHAR2(2),
ccs_atnd_str_dte VARCHAR2(14),
ccs_atnd_stp_dte VARCHAR2(14),
ccs_dsp_trm_lit VARCHAR2(3),
ccs_dsp_nbr_trms VARCHAR2(10),
ccs_dsp_str_trm VARCHAR2(10),
ccs_dsp_stp_trm VARCHAR2(10),
ccs_sch_nbr_trms VARCHAR2(10),
ccs_sch_str_trm VARCHAR2(10),
ccs_sch_stp_trm VARCHAR2(10),
ccs_desc VARCHAR2(15),
control_set_ref VARCHAR2(10),
live VARCHAR2(10),
track VARCHAR2(10),
ccs_sem_use_trms_obs VARCHAR2(10),
ccs_sem_use_trms VARCHAR2(20),
ccs_let_std_take VARCHAR2(10),
sif_ccs_ref_id VARCHAR2(32),
fl_term_xref VARCHAR2(2)
)
tablespace DW_DEFAULT01
pctfree 10
initrans 1
maxtrans 255
storage
(
initial 80K
next 1M
minextents 1
maxextents unlimited
)
nologging;
prompt
prompt Creating table COURSE
prompt =====================
prompt
create table CEDARHILL.COURSE
(
cor_num_id VARCHAR2(10),
area_comment_id VARCHAR2(10),
course_type_id VARCHAR2(3),
department_id VARCHAR2(3),
lock_group_id VARCHAR2(5),
schd_grd_id VARCHAR2(10),
subject_id VARCHAR2(3),
instr_area_id VARCHAR2(7),
report_card_grp_id VARCHAR2(5),
entity_id VARCHAR2(5),
school_year VARCHAR2(10),
cor_alphakey VARCHAR2(10),
cor_schd_priority VARCHAR2(10),
cor_grd_rng_low VARCHAR2(10),
cor_length_set_id VARCHAR2(3),
cor_status VARCHAR2(10),
cor_sdesc VARCHAR2(15),
cor_ldesc VARCHAR2(30),
cor_tracks VARCHAR2(9),
cor_has_grades VARCHAR2(10),
cor_has_attendance VARCHAR2(10),
cor_reg_lun_stdy_tran VARCHAR2(10),
cor_nbr_chairs_max VARCHAR2(10),
cor_nbr_requests VARCHAR2(10),
cor_fee NUMBER(7,2),
cor_anytime VARCHAR2(10),
cor_tmp_has_skd VARCHAR2(10),
cor_academic_hours NUMBER(5,3),
cor_req_elec VARCHAR2(10),
cor_grd_rng_high VARCHAR2(10),
cor_schd_type VARCHAR2(10),
cor_ctrl_sets_poss VARCHAR2(200),
cor_est_nbr_sections VARCHAR2(10),
cor_team_schd_priority VARCHAR2(10),
gpa_set_id VARCHAR2(10),
mn_cor_assign_code VARCHAR2(10),
mag_hs_code_id VARCHAR2(5),
cor_credits_good NUMBER(5,3),
cor_credits_gpa NUMBER(5,3),
cor_credits_gpa_2 NUMBER(5,3),
mn_cor_lang_level VARCHAR2(10),
live VARCHAR2(10),
cor_leveling_type VARCHAR2(10),
mn_cor_grd_level VARCHAR2(10),
mn_cor_prd_length VARCHAR2(10),
gpa_set_id_2 VARCHAR2(10),
prev_cor_num_id VARCHAR2(10),
gpa_set_id_3 VARCHAR2(10),
gpa_set_id_4 VARCHAR2(10),
gpa_set_id_5 VARCHAR2(10),
gpa_set_id_6 VARCHAR2(10),
gpa_set_id_7 VARCHAR2(10),
gpa_set_id_8 VARCHAR2(10),
gpa_set_id_9 VARCHAR2(10),
cor_credits_gpa_3 NUMBER(5,3),
cor_credits_gpa_4 NUMBER(5,3),
cor_credits_gpa_5 NUMBER(5,3),
cor_credits_gpa_6 NUMBER(5,3),
cor_credits_gpa_7 NUMBER(5,3),
cor_credits_gpa_8 NUMBER(5,3),
cor_credits_gpa_9 NUMBER(5,3),
cor_cat_num_id VARCHAR2(10),
wa_dual_credit_code VARCHAR2(10),
wa_articulated_tech_prep VARCHAR2(10),
wa_direct_transcription_av VARCHAR2(10),
cip_code VARCHAR2(10),
cte_prg_code VARCHAR2(10),
service_id VARCHAR2(10),
trans_area VARCHAR2(10),
voc_ed_contact_hrs VARCHAR2(10),
unit_desc VARCHAR2(10),
honor_roll VARCHAR2(10),
wi_pi_1215_subj_topic VARCHAR2(6),
cece_type VARCHAR2(10),
cece_cor_num_id VARCHAR2(10),
trn_grd_lvl_ovr VARCHAR2(2),
cor_repeatable VARCHAR2(10),
sif_cor_ref_id VARCHAR2(32),
cor_avail_to_oas VARCHAR2(10),
clas_bld_room_type_id VARCHAR2(10),
cor_act_nbr_sections VARCHAR2(10),
cor_max_nbr_requests VARCHAR2(10),
clas_calendar_id VARCHAR2(5),
clas_nbr_days VARCHAR2(10),
clas_nbr_periods VARCHAR2(10),
clas_nbr_teachers VARCHAR2(10),
clas_nbr_stds_min VARCHAR2(10),
clas_nbr_stds_opt VARCHAR2(10),
clas_nbr_stds_max VARCHAR2(10),
clas_use_meeting_times VARCHAR2(10),
mb_allow_mult_same_prd VARCHAR2(10),
mb_max_same_prd NUMBER(5,2),
mb_cor_rank VARCHAR2(10),
mb_manual_cor_rank VARCHAR2(10),
certification_req VARCHAR2(10),
wa_college_hs VARCHAR2(10),
wa_hecb_core_course VARCHAR2(10),
wa_internatl_baccal VARCHAR2(10),
wa_running_start VARCHAR2(10),
wa_tech_prep VARCHAR2(10),
clas_x_consecutive_prds VARCHAR2(10),
wi_prog_area_part VARCHAR2(10),
cor_core VARCHAR2(10),
clas_time_type VARCHAR2(10),
x_allow_gpa_set_override VARCHAR2(10),
mn_cor_code_cpe VARCHAR2(10),
mn_incl_cor_in_stars VARCHAR2(10),
x_use_tran_glo_in_gpa VARCHAR2(10),
wa_adv_placement_code VARCHAR2(6),
x_use_tran_glo_in_earn_crd VARCHAR2(10),
cor_grade_system VARCHAR2(10),
cor_grade_type VARCHAR2(10),
wa_honors_option VARCHAR2(10),
wa_recurring VARCHAR2(10),
egb_academic_id VARCHAR2(30),
egb_academic_dflt_entity VARCHAR2(30),
excl_from_rank VARCHAR2(10),
cor_nbr_alt_reqs VARCHAR2(10),
mi_cor_assign_code VARCHAR2(10),
activity_id VARCHAR2(3),
ut_where_taught VARCHAR2(2),
ut_duel_crdt_cor VARCHAR2(10),
ut_college_code VARCHAR2(10),
ut_college_crdt NUMBER(7,2),
wa_int_bac VARCHAR2(6),
cor_academic_minutes VARCHAR2(10),
reading_intervention VARCHAR2(10),
dual_enroll_ind VARCHAR2(10),
schedule_method VARCHAR2(10),
special_program VARCHAR2(10),
sr_char VARCHAR2(200)
)
tablespace DW_DEFAULT01
pctfree 10
initrans 1
maxtrans 255
storage
(
initial 80K
next 1M
minextents 1
maxextents unlimited
)
nologging;
prompt
prompt Creating table COURSE_EXT
prompt =========================
prompt
create table CEDARHILL.COURSE_EXT
(
entity_id VARCHAR2(5) not null,
school_year NUMBER not null,
cor_alphakey VARCHAR2(10) not null,
service_id VARCHAR2(10),
trans_area VARCHAR2(10),
voc_ed_contact_hrs NUMBER,
cor_num_id NUMBER not null,
unit_desc VARCHAR2(50),
honor_roll NUMBER,
multiple_trans_areas NUMBER,
pe_waiver_semesters NUMBER,
tx_aar_sem_bucket NUMBER,
r10_loaddate DATE
)
tablespace DW_DEFAULT01
pctfree 10
initrans 1
maxtrans 255
storage
(
initial 80K
next 1M
minextents 1
maxextents unlimited
)
nologging;
create bitmap index CEDARHILL.BXI_COURSE_EXT_COR_NUM_ID on CEDARHILL.COURSE_EXT (COR_NUM_ID)
tablespace DW_DEFAULT02
pctfree 10
initrans 2
maxtrans 255
storage
(
initial 80K
next 1M
minextents 1
maxextents unlimited
)
nologging;
prompt
prompt Creating table DISTRICT
prompt =======================
prompt
create table CEDARHILL.DISTRICT
(
district_code VARCHAR2(14) not null,
district_name VARCHAR2(80),
district_state VARCHAR2(4),
district_type_id VARCHAR2(6),
live VARCHAR2(1),
sys_wi_lea_id VARCHAR2(8),
address_id VARCHAR2(10)
)
tablespace DW_DEFAULT01
pctfree 10
initrans 1
maxtrans 255
storage
(
initial 80K
next 1M
minextents 1
maxextents unlimited
)
nologging;
prompt
prompt Creating table DIS_ACTION
prompt =========================
prompt
create table CEDARHILL.DIS_ACTION
(
dis_action_id VARCHAR2(3),
dis_action_sdesc VARCHAR2(15),
dis_action_ldesc VARCHAR2(30),
dis_action_flag VARCHAR2(1),
dis_action_time NUMBER(7,2),
dis_action_susp_type VARCHAR2(1),
dis_action_points NUMBER(7,2),
dis_action_severity VARCHAR2(10),
dis_action_unused_char1 VARCHAR2(30),
dis_action_unused_char2 VARCHAR2(30),
use_in_referrals VARCHAR2(10),
state_act_code VARCHAR2(10)
)
tablespace DW_DEFAULT01
pctfree 10
initrans 1
maxtrans 255
storage
(
initial 80K
next 1M
minextents 1
maxextents unlimited
)
nologging;
prompt
prompt Creating table DIS_ACTION_DIFF_REASON
prompt =====================================
prompt
create table CEDARHILL.DIS_ACTION_DIFF_REASON
(
diff_reason_id VARCHAR2(2),
diff_reason_sdesc VARCHAR2(15),
diff_reason_ldesc VARCHAR2(30)
)
tablespace DW_DEFAULT01
pctfree 10
initrans 1
maxtrans 255
storage
(
initial 80K
next 1M
minextents 1
maxextents unlimited
)
nologging;
prompt
prompt Creating table DIS_OFFENSE
prompt ==========================
prompt
create table CEDARHILL.DIS_OFFENSE
(
dis_offense_id VARCHAR2(3),
dis_offense_sdesc VARCHAR2(15),
dis_offense_ldesc VARCHAR2(30),
dis_offense_points NUMBER(7,2),
live VARCHAR2(10),
dis_offense_severity VARCHAR2(10),
dis_action_id VARCHAR2(3),
dis_drug_related VARCHAR2(10),
dis_weapon_related VARCHAR2(10),
dis_injury_related VARCHAR2(10),
off_unused_char_1 VARCHAR2(30),
off_unused_char_2 VARCHAR2(30),
off_unused_date_1 VARCHAR2(14),
off_unused_date_2 VARCHAR2(14),
off_unused_dec_1 NUMBER(7,2),
off_unused_dec_2 NUMBER(7,2),
off_unused_int_1 VARCHAR2(10),
off_unused_int_2 VARCHAR2(10),
off_unused_log_1 VARCHAR2(10),
off_unused_log_2 VARCHAR2(10),
sys_mi_off_type VARCHAR2(2),
dis_felony_misdem VARCHAR2(1),
dis_exp_reason VARCHAR2(2),
use_in_referrals VARCHAR2(10),
dis_alcohol_related VARCHAR2(10),
dis_hate_related VARCHAR2(10),
dis_gang_related VARCHAR2(10),
state_off_code VARCHAR2(10),
bullying_related VARCHAR2(10)
)
tablespace DW_DEFAULT01
pctfree 10
initrans 1
maxtrans 255
storage
(
initial 80K
next 1M
minextents 1
maxextents unlimited
)
nologging;
prompt
prompt Creating table ENTITY
prompt =====================
prompt
create table CEDARHILL.ENTITY
(
entity_id VARCHAR2(10),
entity_name VARCHAR2(60),
school_year VARCHAR2(10),
entity_type_id VARCHAR2(6),
use_sub_school_flag VARCHAR2(1),
live VARCHAR2(1),
allow_add_of_active VARCHAR2(1),
use_std_dst_cum VARCHAR2(1),
unused_char_2 VARCHAR2(6),
unused_char_1 VARCHAR2(6),
entity_type VARCHAR2(2),
edline_link VARCHAR2(200),
hm_fld_lbl_2c VARCHAR2(4),
hm_fld_lbl_4c VARCHAR2(8),
hm_fld_lbl_8c VARCHAR2(16),
dis_action_email_x VARCHAR2(1),
dis_act_det_email_x VARCHAR2(1),
softcode_homeroom_label VARCHAR2(1),
dis_prompt_email VARCHAR2(1),
peims_reportable VARCHAR2(1),
peims_campus_type VARCHAR2(16),
gr_credits_to_units_factor NUMBER,
sif_entity_ref_id VARCHAR2(64),
cluster_code VARCHAR2(6),
state_aware_application_server VARCHAR2(16),
x_use_auto_gpa_audit VARCHAR2(1),
audit_user_or_system_wide VARCHAR2(16),
audit_defaults VARCHAR2(54),
x_use_crs_ent_gpa_calc VARCHAR2(1),
crs_ent_gpa_calc_entities VARCHAR2(16),
wa_summer_school VARCHAR2(1),
wa_csrs_reporting VARCHAR2(1),
grad_period_to_use NUMBER,
x_override_def_grd_prd VARCHAR2(1),
entity_short_name VARCHAR2(16),
entity_status VARCHAR2(2)
)
tablespace DW_DEFAULT02
pctfree 10
initrans 1
maxtrans 255
storage
(
initial 80K
next 1M
minextents 1
maxextents unlimited
);
prompt
prompt Creating table ENTITY_YEAR
prompt ==========================
prompt
create table CEDARHILL.ENTITY_YEAR
(
entity_id VARCHAR2(5),
school_year VARCHAR2(10),
max_sch_prds VARCHAR2(10)
)
tablespace DW_DEFAULT01
pctfree 10
initrans 1
maxtrans 255
storage
(
initial 80K
next 1M
minextents 1
maxextents unlimited
)
nologging;
prompt
prompt Creating table ERP_QGT97_GENERIC_TABLE
prompt ======================================
prompt
create table CEDARHILL.ERP_QGT97_GENERIC_TABLE
(
qgt97_unique_code VARCHAR2(16),
qgt97_date VARCHAR2(440),
qgt97_logical VARCHAR2(160),
qgt97_dec VARCHAR2(440),
qgt97_int VARCHAR2(440),
qgt97_chr VARCHAR2(540),
qgt97_sort2_3 VARCHAR2(16),
qgt97_sort2_2 VARCHAR2(16),
qgt97_sort2_1 VARCHAR2(16),
qgt97_sort3 VARCHAR2(16),
qgt97_sort2 VARCHAR2(16),
qgt97_sort1 VARCHAR2(16),
qgt97_src_code VARCHAR2(16),
qgt97_src_id NUMBER,
qgt97_table_name VARCHAR2(28),
qgt97_record_id NUMBER
)
tablespace DW_DEFAULT01
pctfree 10
initrans 1
maxtrans 255
storage
(
initial 80K
next 1M
minextents 1
maxextents unlimited
)
nologging;
create bitmap index CEDARHILL.BMI_ERP_QGT97_SRC_ID on CEDARHILL.ERP_QGT97_GENERIC_TABLE (QGT97_SRC_ID)
tablespace DW_DEFAULT01
pctfree 10
initrans 2
maxtrans 255
storage
(
initial 80K
next 1M
minextents 1
maxextents unlimited
)
nologging;
create bitmap index CEDARHILL.BMI_ERP_QGT97_TABLE_NAME on CEDARHILL.ERP_QGT97_GENERIC_TABLE (QGT97_TABLE_NAME)
tablespace DW_DEFAULT01
pctfree 10
initrans 2
maxtrans 255
storage
(
initial 80K
next 1M
minextents 1
maxextents unlimited
)
nologging;
prompt
prompt Creating table ERP_SYS_CTD
prompt ==========================
prompt
create table CEDARHILL.ERP_SYS_CTD
(
date_1 VARCHAR2(8),
dec_1 NUMBER,
int_2 NUMBER,
int_1 NUMBER,
log_2 VARCHAR2(1),
log_1 VARCHAR2(1),
char_2 VARCHAR2(4000),
char_1 VARCHAR2(4000),
end_year NUMBER,
start_year NUMBER,
time_added NUMBER,
date_added VARCHAR2(8),
code_sdesc VARCHAR2(4000),
code_ldesc VARCHAR2(4000),
code_id VARCHAR2(50),
table_id VARCHAR2(50),
x_default VARCHAR2(1)
)
tablespace DW_DEFAULT01
pctfree 10
initrans 1
maxtrans 255
storage
(
initial 80K
next 1M
minextents 1
maxextents unlimited
)
nologging;
create bitmap index CEDARHILL.BMI_ERP_SYS_CTD_CODE_ID on CEDARHILL.ERP_SYS_CTD (CODE_ID)
tablespace DW_DEFAULT01
pctfree 10
initrans 2
maxtrans 255
storage
(
initial 80K
next 1M
minextents 1
maxextents unlimited
)
nologging;
create bitmap index CEDARHILL.BMI_ERP_SYS_CTD_TABLE_ID on CEDARHILL.ERP_SYS_CTD (TABLE_ID)
tablespace DW_DEFAULT01
pctfree 10
initrans 2
maxtrans 255
storage
(
initial 80K
next 1M
minextents 1
maxextents unlimited
)
nologging;
prompt
prompt Creating table ERP_SYS_CTM
prompt ==========================
prompt
create table CEDARHILL.ERP_SYS_CTM
(
unused_char_1 VARCHAR2(16),
time_added NUMBER,
date_added VARCHAR2(8),
tbl_sdesc VARCHAR2(100),
tbl_ldesc VARCHAR2(500),
table_id VARCHAR2(100),
x_allow_maintain VARCHAR2(1)
)
tablespace DW_DEFAULT01
pctfree 10
initrans 1
maxtrans 255
storage
(
initial 80K
next 1M
minextents 1
maxextents unlimited
)
nologging;
create bitmap index CEDARHILL.BMI_ERP_SYS_CTM_TABLE_ID on CEDARHILL.ERP_SYS_CTM (TABLE_ID)
tablespace DW_DEFAULT01
pctfree 10
initrans 2
maxtrans 255
storage
(
initial 80K
next 1M
minextents 1
maxextents unlimited
)
nologging;
prompt
prompt Creating table FAMILY
prompt =====================
prompt
create table CEDARHILL.FAMILY
(
family_id VARCHAR2(10),
salutation_id VARCHAR2(3),
language_code VARCHAR2(3),